<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>X 轴坐标是 : <span class="x">950</span></h1>
    <h1>Y 轴坐标是 : <span class="y">64</span></h1>
    <script>
        document.onmousemove = function(event){
            document.querySelector('.x').innerHTML = event.clientX;
            document.querySelector('.y').innerHTML = event.clientY
        }
    </script>
</body>
</html>